package com.cet6.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cet6.entity.DailyTask;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;

@Mapper
public interface DailyTaskMapper extends BaseMapper<DailyTask> {
    
    /**
     * 根据用户ID和日期查询每日任务
     * @param userId 用户ID
     * @param taskDate 任务日期
     * @return 每日任务
     */
    DailyTask selectByUserIdAndDate(@Param("userId") Long userId, @Param("taskDate") LocalDate taskDate);
}
